package com.zx.idc.backend.gui.report.rdomain;


import com.baomidou.mybatisplus.plugins.Page;
import com.zx.idc.backend.gui.common.BaseApi;
import com.zx.idc.backend.gui.common.Result;
import com.zx.idc.ds.report.rdomain.entity.RDomainTraffic;
import com.zx.idc.ds.report.rdomain.service.IRDomainTrafficService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 域名流量统计表 前端控制器
 * </p>
 *
 * @author rxliuli
 * @since 2019-01-31
 */
@RestController
@RequestMapping("/api/rDomainTraffic")
public class RDomainTrafficController extends BaseApi {
    @Autowired
    private IRDomainTrafficService irDomainTrafficService;

    @GetMapping("/query-page")
    @RequiresPermissions("report-statistics:r-domain-traffic")
    public Result<Page<RDomainTraffic>> queryPage(Page<RDomainTraffic> page, RDomainTraffic rDomainTraffic) {
        return success(irDomainTrafficService.selectPage(page, rDomainTraffic));
    }

}

